package com.lin.springcloud;

import com.lin.myrule.LinRule;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.ribbon.RibbonClient;

/**
 * @ author:lin tingfeng
 * @ data:2021/10/9-18:02
 */
// Ribbon和Eureka整合之后,客户端可直接调用,不用更新ip地址和端口号
@SpringBootApplication
@EnableEurekaClient
// 在微服务启动的时候就可以取加载我们自定义的Ribbon类
//@RibbonClient(name = "SPRINGCLOUD-PROVIDER-DEPT" ,configuration = LinRule.class)
public class DeptCosumer_80 {
    public static void main(String[] args) {
        SpringApplication.run(DeptCosumer_80.class);
    }
}
